﻿using Geek.Server.Core.Net.BaseHandler;
using Server.Logic.Common.Handler;

namespace Server.Logic.Login
{
    public class MissingMessageHandler : GlobalCompHandler<LoginCompAgent>
    {
        protected override Task ActionAsync()
        {
            // 只关心请求类消息
            if (Msg is not RequestMessage requestMessage || requestMessage.RpcId == 0)
                return Task.CompletedTask;

            Channel.SetResponse(requestMessage.RpcId, MessageErrorCode.InvalidRoute);

            return Task.CompletedTask;
        }
    }
}